package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("resource")
public class Resource {
    @TableId(type = IdType.INPUT)
    private String id;
    
    // 资源编号（8位数字）
    private String resourceId;
    
    // 基本信息
    private String title;
    private String description;
    private String category; // TEACHING, SCIENTIFIC, LITERATURE, EQUIPMENT
    private String type; // DOCUMENT, EQUIPMENT
    
    // 文件信息（文档类型）
    private String fileUrl;
    private String fileName;
    private Long fileSize;
    private String fileExtension;
    
    // 设备信息（设备类型）
    private String equipmentInfo;
    
    // 上传者信息
    private String uploaderId;
    private String uploaderName;
    
    // 审核信息
    private String status; // PENDING, APPROVED, REJECTED
    private String reviewerId;
    private String reviewerName;
    private LocalDateTime reviewTime;
    private String reviewComment;
    
    // 统计信息
    private Integer downloadCount;
    private Integer viewCount;
    
    // 其他信息
    private String tags;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String remark;
} 